package com.design_patterns.singleton;

/**
 * @ClassName: HungryMan
 * @Author: ZhangYue26
 * @Description: 饿汉式单例模式
 * @Date: 2020-11-05
 */
public class HungryMan {
    public static final HungryMan hungryMan = new HungryMan();

    public HungryMan() {
    }

    public static synchronized HungryMan getInstance() {
        return hungryMan;
    }
}
